package com.springboot.uav.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.uav.dto.MyOrdersQueryDto;
import com.springboot.uav.dto.OrderQueryDto;
import com.springboot.uav.dto.OrdersDto;
import com.springboot.uav.entity.Orders;
import com.springboot.uav.entity.Result;
import net.sourceforge.tess4j.TesseractException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface OrdersService extends IService<Orders> {
    Result addOrder(OrdersDto ordersDto);

    Result getReward(OrdersDto ordersDto);

    Result addOrderImage(MultipartFile image) throws IOException, TesseractException;

    Result orderQuery(OrderQueryDto orderQueryDto);

    Result myOrdersFind(MyOrdersQueryDto myOrdersQueryDto);
    boolean getOrder(Integer userId,Integer orderId);
}
